cmake_minimum_required(VERSION 3.25)
project(rtsp_sei_parse)

set(BUILD_APP_NAME rtsp_sei_parse)
set(CMAKE_CXX_STANDARD 17)
# 查找和导入 OpenCV 的配置
find_package(OpenCV REQUIRED)


set(SRC_LIST
        ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp)

add_executable(${BUILD_APP_NAME} ${SRC_LIST})
# 将 OpenCV 的头文件目录添加到编译选项中
target_include_directories(${BUILD_APP_NAME} PUBLIC
        ${OpenCV_INCLUDE_DIRS})
# 将 OpenCV 的库链接到可执行文件
target_link_libraries(${BUILD_APP_NAME}
        ${OpenCV_LIBS}
        avformat
        avcodec
        avutil)